home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / enscript.4 / enscript / enscript-1.4.0 / lib / Makefile.am < prev    next >
Encoding:
Makefile  |  1996-06-13  |  1.6 KB  |  51 lines

  1. #
  2. # Makefile for the library files.
  3. # Copyright (c) 1995 Markku Rossi
  4. #
  5. # Author: Markku Rossi <mtr@iki.fi>
  6. #
  7.  
  8. #
  9. # This file is part of GNU enscript.
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; either version 2, or (at your option)
  13. # any later version.
  14. #
  15. # This program is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. # GNU General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU General Public License
  21. # along with this program; see the file COPYING.  If not, write to
  22. # the Free Software Foundation, 59 Temple Place - Suite 330,
  23. # Boston, MA 02111-1307, USA.
  24. #
  25.  
  26. pkgdata_DATA = ascii.enc asciiscands.enc hp8.enc ibmpc.enc latin1.enc \
  27. latin2.enc latin3.enc mac.enc ps.enc pslatin1.enc vms.enc \
  28. a2ps.hdr edd.hdr emacs.hdr enscript.hdr frame.hdr mp.hdr simple.hdr \
  29. enscript.pro 
  30.  
  31. EXTRA_DIST = enscript.cfg.in
  32. CLEANFILES = enscript.cfg
  33.  
  34. all-local: enscript.cfg
  35.  
  36. install-data-local: enscript.cfg
  37.     $(top_srcdir)/mkinstalldirs $(sysconfdir)
  38.     if test -r $(sysconfdir)/enscript.cfg; then \
  39.       cp $(sysconfdir)/enscript.cfg $(sysconfdir)/enscript.cfg.old; \
  40.     fi
  41.     $(INSTALL_DATA) enscript.cfg $(sysconfdir)/enscript.cfg
  42.     
  43. uninstall-local:
  44.     rm -f $(sysconfdir)/enscript.cfg
  45.  
  46. enscript.cfg: $(srcdir)/enscript.cfg.in Makefile
  47.     sed 's%@DATADIR@%$(datadir)%g; s%@media@%@MEDIA@%g;' \
  48.     $(srcdir)/enscript.cfg.in >enscript.cfg
  49.  
  50.